<%@page import="com.zhiyou.entities.User"%>
<%@page import="java.util.List"%>
<%@page import="com.zhiyou.util.UserUtil"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<%
	request.setCharacterEncoding("utf-8");
	response.setCharacterEncoding("utf-8");
	String condition=request.getParameter("searchCondition");
	condition=new String(condition.getBytes("iso-8859-1"),"utf-8");
    System.out.print("条件    :"+condition);
	UserUtil util=new UserUtil();
	//searchByCondition(condition); condition role username
	List<User> list=util.searchByCondition(condition);
	session.setAttribute("list", list);
	response.sendRedirect("userList.jsp");
%>
</body>
</html>